Thread: [RNG] Progressive difficulty

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446

    [RNG] Progressive difficulty

    I'm planning to build a table of random special combat effects. Each group of 6 effects is more difficult to achieve than the previous group.

    For now I came up with a simple system in which a 1d6 is rolled. Every time a 6 is rolled, I deduce 1 and sum up the result. I stop rolling when no 6 turns up. However, I need your help coming up with the correct formula to calculate the odds for any given number so I can correctly build the table.

    Example 1:
    1d6 = 5
    End result = 5

    Example 2:
    1d6 = 6
    1d6 = 3
    End Result: (6 - 1) + 3 = 8

    Example 3:
    1d6 = 6
    1d6 = 6
    1d6 = 2
    End Result: (6 - 1) + (6 - 1) + 2 = 12
    Last edited by Mario F.; 03-14-2010 at 07:54 PM.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 09-06-2009, 06:56 PM
  2. got difficulty on this
    By gtr_s15 in forum C++ Programming
    Replies: 4
    Last Post: 02-01-2006, 09:37 AM
  3. DVD Progressive Format
    By ober in forum Tech Board
    Replies: 5
    Last Post: 08-13-2004, 02:22 PM
  4. homework giving difficulty
    By jjj in forum C Programming
    Replies: 5
    Last Post: 09-13-2002, 06:35 PM
  5. Game difficulty
    By pdstatha in forum C++ Programming
    Replies: 5
    Last Post: 06-30-2002, 04:12 PM